<?php
namespace App;
use Medoo\Medoo;

require_once '../../../vendor/autoload.php';


class BaseController
{

    public function medooDb(){
        return new Medoo([
            'database_type' => 'mysql',
            'database_name' => 'youtube',
            'server' => '127.0.0.1',
            'username' => 'root',
            'password' => 'wewrjjdsl@oo888rmds'
        ]);
    }



    public static function spiderDb(){
        return [
            'host' => '127.0.0.1',
            'port' => 3306,
            'user' => 'root',
            'pass' => 'wewrjjdsl@oo888rmds',
            'name' => 'youtube',
        ];
    }

    public static function spiderQueueDb(){
        return [
            'host' => '127.0.0.1',
            'port' => 6379,
            'pass' => '',
            'db' => 1,
            'prefix' => 'phpspider',
            'timeout' => 30,
        ];
    }
    
    
    
    public static function spiderClientIp(){
        return [
            '192.168.0.2', '192.168.0.3', '192.168.0.4', '192.168.0.5', '192.168.0.6', '192.168.0.7', '192.168.0.8', '192.168.0.9',
            '192.168.1.2', '192.168.1.3', '192.168.1.4', '192.168.1.5', '192.168.1.6', '192.168.1.7', '192.168.1.8', '192.168.1.9',
            '192.168.2.2', '192.168.2.3', '192.168.2.4', '192.168.2.5', '192.168.2.6', '192.168.2.7', '192.168.2.8', '192.168.2.9',
            '192.168.3.2', '192.168.3.3', '192.168.3.4', '192.168.3.5', '192.168.3.6', '192.168.3.7', '192.168.3.8', '192.168.3.9',
            '192.168.4.2', '192.168.4.3', '192.168.4.4', '192.168.4.5', '192.168.4.6', '192.168.4.7', '192.168.4.8', '192.168.4.9',
            '192.168.5.2', '192.168.5.3', '192.168.5.4', '192.168.5.5', '192.168.5.6', '192.168.5.7', '192.168.5.8', '192.168.5.9',
        ];
    }




}




